package com.decorate;

/**
 * @author cyf
 * @description
 * @create 2018-09-18 10:33
 **/
public class UserServiceAbstractImpl extends UserServiceAbstract {

    public UserServiceAbstractImpl(UserServiceInter userServiceInter){
        super(userServiceInter);
    }

    @Override
    public void show() {
        // 实现show(); 方法的功能扩展
        System.out.println("查询该对象是否存在！");
        if(true){
            System.out.println("该对象存在！");
            userServiceInter.show();
        } else {
            System.out.println("该对象不存在！");
        }
    }
}
